<template>
  <div>
    <div class="hotclasslist_box">
      <div
        class="shu"
        v-for="(item,index) in hotClassList.educationLIST"
        :key="index"
        @click="jiaoyudetail(item)"
      >
        <img
          :src="item.cover"
          alt=""
        >
        <div class="shu_wz">
          <div class="shu_wz_bt">{{item.name}} </div>
          <div class="shu_wz_jie">共计{{item.class_sum}}课时 | {{item.click_number}}人已学</div>
          <div class="shu_wz_price">¥{{item.preferential_money}} <div class="">¥{{item.money}}</div>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  props: ['hotClassList'],
  data () {
    return {}
  },
  methods: {
    jiaoyudetail (item) {
      // console.log(item.curriculum_id)
      this.$emit('jiaoyudetail', item)
      // this.$router.push({ name: '/coursedetails', params: { curriculumId: item.curriculum_id } })
    }
  },
  components: {},
  created () { }
}
</script>
<style>
.hotclasslist_box {
  width:calc(100vw *670/750);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  justify-content: space-between;
  align-content: space-between;
  align-items: center;
}
.shu {
  display: inline-block;
  width: calc(100vw *315/750);
  margin-bottom: 20px;
}
.shu :nth-last-child(2) {
  margin-bottom: 0px;
}
.shu img {
  width: 100%;
  height: calc(100vw *315/750*188/315);
  background-color: #cccccc;
  border-radius: 4px;
}
.shu_wz {
  width: 100%;
}
.shu_wz_bt {
  font-family: PingFangSC-Medium;
  font-size: 15px;
  font-weight: normal;
  font-stretch: normal;
  letter-spacing: 0px;
  color: #1a1a1a;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin: 6px 0px;
}
.shu_wz_jie {
  font-family: PingFangSC-Medium;
  font-size: 12px;
  font-weight: normal;
  font-stretch: normal;
  letter-spacing: 0px;
  color: #999999;
  margin-bottom: 5px;
}
.shu_wz_price {
  font-family: PingFangSC-Medium;
  font-size: 16px;
  font-weight: normal;
  font-stretch: normal;
  letter-spacing: 0px;
  color: #fd5e5e;
}
.shu_wz_price div {
  display: inline-block;
  font-family: PingFangSC-Medium;
  font-size: 12px;
  font-weight: normal;
  font-stretch: normal;
  letter-spacing: 0px;
  color: #cccccc;
  text-decoration: line-through;
  margin-left: 5px;
}
</style>
